<?php
namespace haibao\jiepai\model\data\booth;

class CmsFocusMaterial extends \haibao\jiepai\model\data\Base{

    /**
     * 1-焦点图 2-信息流展位文章 3-头条展位文章
     */
    const CATEGORY_FOUCS = 1;
    const CATEGORY_HEAD_MESSAGE_STREAM = 2;
    const CATEGORY_HEAD_ARTICLE = 3;
	/**
	 * 类型：1.文章，2专题，3.人物主页，4.标签，5网页
	 */
	const TYPE_ARTICE = 1;
    const TYPE_FEATURE = 2;
    const TYPE_PEOPLE = 3;
    const TYPE_TAG = 4;
    const TYPE_WEB = 5;

    /**
     * 状态 0 未使用 1已使用
     */
    const STATUS_NOT_USE = 0;
    CONST STATUS_HAS_USE = 1;
	public $Type;

	public $TypeID;
	
	public $CreateTime;
	
	public $Flag;

    public $Category;

    public $Link;

    public $Title;

    public $Picture;

    public $UpTime;

    public $DownTime;

    public $Editor;

    public $Remarks;

    public $UpIndex;

    public $Status;

	public function __construct(){
		parent::__construct();
		$this->setColumnName('Id', 'ID');
        $this->intField('Category', 'Category');
        $this->intField('Type', 'Type');
		$this->intField('TypeID', 'TypeID');
        $this->stringField('Link', 'Link');
        $this->stringField('Title', 'Title');
        $this->intField('Picture', 'Picture');
        $this->dateField('CreateTime', 'CreateTime');
        $this->dateField('UpTime', 'UpTime');
        $this->dateField('DownTime', 'DownTime');
        $this->intField('Editor', 'Editor');
        $this->stringField('Remarks', 'Remarks');
        $this->intField('UpIndex', 'UpIndex');
        $this->intField('Status', 'Status');
        $this->intField('Flag', 'Flag');
		$this->setTableName('cms_focus_material');
	}
}